#!/bin/bash

rm -rf /home/yt${1}/code/config

# 指定源文件路径和目标解压路径
source_file_path="/home/yt109/code/config_109.tar.gz"
destination_path="/home/yt${1}/code"

# 使用tar命令解压文件到目标路径
tar -xzvf "$source_file_path" -C "$destination_path"

# 检查解压是否成功
if [ $? -eq 0 ]; then
    echo "File has been successfully extracted to $destination_path"
else
    echo "Failed to extract the file to $destination_path"
fi


